<template>
    <div>
        <span @click="ck1('shop')">商品管理</span>|<span @click="ck1('user')">用户管理</span>
        <hr>
        <router-view></router-view>
        <!-- <h1>home</h1> -->
    </div>
</template>

<script>
export default {
    methods: {
        ck1(path1) {
            this.$router.push({ name: path1 })
        },
    },
    mounted() {
        console.log(this.$route.meta);
    },
    // beforeRouteEnter(to, from, next) {
    //     if (to.meta.isAutr) {
    //         next()
    //     } else {
    //         next(false)
    //     }
    // }
}
</script>

<style lang="less" scoped></style>